﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="complete-quote.aspx.cs" Inherits="car_insurance_complete_quote" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="/css/popup_login.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
    <div>
        <div class="body">
            <div class="top">
            </div>
            <div class="body">
                <div class="padding_lr15px">
                    <!-- Column Content | Start -->
                    <div class="col_content_full">
                        <div class="top">
                        </div>
                        <div class="body">
                            <div class="padding_lr30px">
                                <div style="float:right"><input type="button" id="ibtEmail" onmousedown="this.className = 'button_emailthis_mousedown';" onmouseout="this.className = 'button_emailthis';"
                                onmouseup="this.className = 'button_emailthis';" class="button_emailthis" onclick="ShowHideEmailPanel(false);ShowEmailPopup();" title="Email this" />
                               </div>
                                <h3 class="blue_bg">
                                    <asp:Label ID="lblQuoteTitle" Font-Bold="false" Text="" runat="server" /></h3>
                                <div class="seperator_15px">
                                </div>
                                <div id="CarForm">
                                    <!-- Form | Start -->
                                    <div id="divAboutYouHeader" style="display: none">
                                        <div class="form_title" onclick="ShowHideDiv('divAboutYou',true)">
                                            <%=GetGlobalResourceObject ("Menu","AboutYou") %></div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div style="display: none" class="form_box" id="divAboutYou">
                                        <div class="row1" id="divGender">
                                            <label for="Gender">
                                                <%=GetGlobalResourceObject ("CarInsurance","Gender") %>
                                            </label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblGender" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="divDOB">
                                            <label for="DOB">
                                                <%=GetGlobalResourceObject ("CarInsurance","DOB") %></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblDOB" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="divOccupation">
                                            <label for="Occupation">
                                                <%=GetGlobalResourceObject ("CarInsurance","Occupation") %></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblOccupation" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <!--End About you -->
                                    <!--Car And Policy Details-->
                                    <div id="divCarAndPolicyDetailHeader">
                                        <div class="form_title" onclick="ShowHideDiv('divCarAndPolicyDetail',true)">
                                            <%=GetGlobalResourceObject("CarInsurance", "CarAndInsuranceDetail")%></div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div style="display: " class="form_box" id="divCarAndPolicyDetail">
                                        <div class="row1" id="div01">
                                            <label for="InsuranceType">
                                                <%=GetGlobalResourceObject("CarInsurance", "InsuranceType")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblInsuranceType" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div02">
                                            <label for="GarageType">
                                                <%=GetGlobalResourceObject("CarInsurance", "GarageType")%>
                                            </label>
                                            <div class="field">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <span class="indicator" style="width: 100px">
                                                                <asp:Label runat="server" ID="lblGarageType" Text="" />
                                                            </span>
                                                        </td>
                                                        <td>
                                                            <asp:HyperLink ID="hplViewGarage" runat="server" Target="_blank" NavigateUrl="/"> 
                                                            <span class="button_viewgarage"></span></asp:HyperLink>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div03">
                                            <label for="CarModelYear">
                                                <%=GetGlobalResourceObject("CarInsurance", "CarModelYear")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblCarModelYear" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div05">
                                            <label for="CarMakeModel">
                                                <%=GetGlobalResourceObject("CarInsurance", "CarMakeModel")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblCarMakeModel" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div06" style="display: none">
                                            <label for="VehicleType">
                                                <%=GetGlobalResourceObject("CarInsurance", "VehicleType")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblVehicleType" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div07" style="display: none">
                                            <label for="RedPlate">
                                                Red Plate</label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblRedPlate" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div08">
                                            <label for="SumInsured">
                                                <%=GetGlobalResourceObject("CarInsurance", "SumInsured")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblSumInsured" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div09" style="display: none">
                                            <label for="ProvinceofRegistration">
                                                <%=GetGlobalResourceObject("CarInsurance", "ProvinceofRegistration")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblProvinceofRegistration" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div11" style="display: none">
                                            <label for="AnyClaim">
                                                <%=GetGlobalResourceObject("CarInsurance", "AnyClaimLastYear")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblAnyClaim" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div12" style="display: none">
                                            <label for="NCB">
                                                Good Record Discount (NCB)</label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblNCB" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div4" runat="server">
                                            <label for="AnnualPremium">
                                                <%=GetGlobalResourceObject("ProposalForm", "CTPLAmount")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblCTPLAmount" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div14" style="display:none">
                                            <label for="CTPL">
                                                <%=GetGlobalResourceObject("CarInsurance", "CTPL")%>?</label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblCTPL" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div13">
                                            <label for="AddDriver">
                                                <%=GetGlobalResourceObject("CarInsurance", "SpecifyNamedDriver")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblAddDriver" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="divFirstDriver" runat="server" style="display: none">
                                            <label for="AddDriver">
                                                <%=GetGlobalResourceObject("Proposal", "DriverFirst")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblDriverFirst" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="divSecondDriver" runat="server" style="display: none">
                                            <label for="AddDriver">
                                                <%=GetGlobalResourceObject("Proposal", "DriverTwo")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblDriverTwo" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div15" style="display: none">
                                            <label for="CoverCommenceDate">
                                                <%=GetGlobalResourceObject("CarInsurance", "CoverCommencementDate")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblCoverCommenceDate" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                                <label for="CoverCommenceDate">
                                                <%=GetGlobalResourceObject("CarInsurance", "CoverCommencementDate")%></label>
                                            </div>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <!--End Car and Policy Details -->
                                    <!--Selected Package Information-->
                                    <div id="divPackageInfoHeader">
                                        <div class="form_title" onclick="ShowHideDiv('divAboutYou',true)">
                                            <%=GetGlobalResourceObject("CarInsurance", "SelectPackageDetail")%></div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div style="display: " class="form_box" id="divPackageInfo">
                                        <div class="row1" id="div16">
                                            <asp:Label ID="lblInsurance" CssClass="lbltitle" Text="<%$ Resources:CarInsurance,Insurer%>" runat="server"></asp:Label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblInsurer" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div18">
                                            <asp:Label ID="lblPackageName" CssClass="lbltitle" Text="<%$ Resources:ProposalForm,Package%>" runat="server"></asp:Label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblPackage" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div17">
                                            <label for="AnnualPremium">
                                                <%=GetGlobalResourceObject("ProposalForm", "AnnualPremium")%>&nbsp;<%=GetGlobalResourceObject("ProposalForm", "IncludeCTPLIfAny")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblAnnualPremium" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <!--End Package Information 
                        ID1 - Car ID
                        ID2 - Policy ID
                        ID3 - Car More Detail ID
                        ID4 - 
                        ID5 - CI Temp Result ID
                        -->
                                    <!--Proposal Form Details-->
                                    <div id="divProposalFormHeader">
                                        <div class="form_title" onclick="ShowHideDiv('divAboutYou',true)">
                                            <%=GetGlobalResourceObject("CarInsurance", "ProposalFormDetail")%></div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div style="display: " class="form_box" id="divProposalForm">
                                        <div class="row1" id="div19">
                                            <label for="Name">
                                                <%=GetGlobalResourceObject("ProposalForm", "Name")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblName" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div24">
                                            <label for="IdentificationNo">
                                                <%=GetGlobalResourceObject("ProposalForm", "IdentificationNo")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblIdentificationNo" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div20">
                                            <label for="ContactNo">
                                                <%=GetGlobalResourceObject("ProposalForm", "ContactNumber")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblContactNo" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div21">
                                            <label for="VehicleNo">
                                                <%=GetGlobalResourceObject("ProposalForm", "CarPlate")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblVehicleNo" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div26">
                                            <label for="PolicyStartDate">
                                                <%=GetGlobalResourceObject("CarInsurance", "PolicyNumber")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblPolicyNumber" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div31">
                                            <label for="PolicyStartDate">
                                                <%=GetGlobalResourceObject("CarInsurance", "PolicyStartDate")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblPolicyStartDate" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div28">
                                            <label for="PolicyEndDate">
                                                <%=GetGlobalResourceObject("CarInsurance", "PolicyEndDate")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblPolicyEndDate" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div22" style="display: none">
                                            <label for="EngineNo">
                                                Engine No</label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblEngineNo" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div23" style="display: none">
                                            <label for="ChassisNo">
                                                <%=GetGlobalResourceObject("ProposalForm", "ChassisNumber")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblChassisNo" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div29" style="display: none">
                                            <label for="VehicleColor">
                                                Vehicle Color</label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblVehicleColor" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div30" style="display: none">
                                            <label for="VehicleProvince">
                                                <%=GetGlobalResourceObject("CarInsurance", "ProvinceofRegistration")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblVehicleProvince" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <!--End Proposal Form Information -->
                                    
                                    <!--Payment Details-->
                                    <div id="divPaymentDetailsHeader" style="display: none">
                                        <div class="form_title" onclick="ShowHideDiv('divAboutYou',true)">
                                            <%=GetGlobalResourceObject("CarInsurance", "PaymentDetail")%></div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div style="display: none" class="form_box" id="divPaymentDetails">
                                        <div class="row1" id="div25">
                                            <label for="Name">
                                                <%=GetGlobalResourceObject("ProposalForm", "PaymentType")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblPaymentType" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row1" id="div10">
                                            <label for="ContactNo">
                                                <%=GetGlobalResourceObject("ProposalForm", "PaymentStatus")%></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:Label runat="server" ID="lblPaymentStatus" Text="" /></span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <!--End Payment Details Information -->
                                    <div class="clear">
                                    </div>
                                    <div class="formButtons">
                                        <div class="cancel">
                                            <span class="button2">
                                                <%--<asp:Button runat="server" ID="btnBack" onmousedown="this.className = 'button_back_mousedown';"
                                    onmouseout="this.className = 'button_back';" onmouseup="this.className = 'button_back';"
                                    CssClass="button_back" OnClientClick="this.removeAttribute('onmouseout');this.removeAttribute('onmouseup'); this.className = 'button_processing';"
                                    OnClick="ibtnBack_Click" />--%>
                                                <asp:Button runat="server" ID="btnBack" Visible="true" onmousedown="this.className = 'button_back_mousedown';"
                                                    onmouseout="this.className = 'button_back';" onmouseup="this.className = 'button_back';"
                                                    CssClass="button_back" CausesValidation="false" OnClientClick="this.removeAttribute('onmouseout');this.removeAttribute('onmouseup'); this.className = 'button_processing';"
                                                    OnClick="btnBack_Click" />
                                            </span>
                                        </div><div style="float:right"><input type="button" id="ibtEmail2" onmousedown="this.className = 'button_emailthis_mousedown';" onmouseout="this.className = 'button_emailthis';"
                                onmouseup="this.className = 'button_emailthis';" class="button_emailthis" onclick="ShowHideEmailPanel(false);ShowEmailPopup();" title="Email this" />
                               </div><asp:HiddenField runat="server" ID="hidRefNo" /><asp:HiddenField runat="server" ID="hidGetStep" /><asp:HiddenField runat="server" ID="hidModDate" />
                                    </div>
                                    <!-- Form | End   -->
                                    <div id="divPopup">
                                        <div style="margin: 0 auto; width: 266px; text-align: center; display: none;">
                                            <asp:ImageButton ID="imgbtnTest" runat="server" ImageUrl="/images/button/reminder_travel_travelpack.png"
                                                AlternateText="Set Travel Insurance Reminder" />
                                        </div>
                                        <cc1:ModalPopupExtender id="mpeEmail" runat="server" enabled="true" targetcontrolid="imgbtnTest"
                                            popupcontrolid="pnlEmail" backgroundcssclass="modalBackground" dropshadow="true"
                                            behaviorid="mdlPopupEmail">
                                        </cc1:ModalPopupExtender>
                                        <asp:Panel ID="pnlEmail" runat="server" Style="display: none; background-color: White;"
                                            DefaultButton="imgbtnEmail">
                                            <asp:UpdatePanel ID="upPassword" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <div class="sr_wrapper_travel_new bg_popup" style="width: 430px; padding: 20px; border: 9px solid #3b3b3b;
                                                        overflow: visible; height: auto;">
                                                        <div class="sr_content_travel_2">
                                                            <div class="sr_form_new">
                                                                <h1>
                                                                    <%= GetGlobalResourceObject("CarInsurance", "SendCompletedQuote")%></h1>
                                                                <div>
                                                                    <asp:Label ID="lblAccountMessage" runat="server"></asp:Label>
                                                                </div>
                                                                <br />
                                                                <div>
                                                                    <asp:ValidationSummary ID="vsEmail" runat="server" ValidationGroup="useremail"
                                                                        ShowSummary="True" CssClass="errorSummary" HeaderText="<%$Resources:Menu,RequiredField %>">
                                                                    </asp:ValidationSummary>
                                                                </div>
                                                                <br />
                                                                <div class="f_row">
                                                                    <span class="form_l email_ico">
                                                                        <%= GetGlobalResourceObject("Menu","EmailAddress") %></span>
                                                                    <div class="f_field">
                                                                        <asp:TextBox ID="txtExEmail" runat="server" Width="210px" />
                                                                    </div>
                                                                    <div class="f_field">
                                                                        <asp:RequiredFieldValidator ID="rfvExEmail" CssClass="validationErrorControl" runat="server"
                                                                            ValidationGroup="useremail" ErrorMessage="" Text="" ControlToValidate="txtExEmail"
                                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="rfvExEmailValid"
                                                                            runat="server" ValidationGroup="useremail" ErrorMessage="" Text="" ControlToValidate="txtExEmail"
                                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                                    </div>
                                                                    <div class="clear">
                                                                    </div>
                                                                </div>
                                                                <br />
                                                                <div id="div27" style="display: none">
                                                                    <table style="width: 100%;">
                                                                        <tr>
                                                                            <td align="center" valign="middle">
                                                                                <img src="/images/loader/loader_main.gif" id="img1" alt="Loading" width="30" height="20" />
                                                                                <span id="Span1">Please wait...</span>
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="right">
                                                                            <td>
                                                                                <a id="A2" href="javascript:StopSubmit();">Cancel</a>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                                <div class="f_row">
                                                                    <asp:Label ID="Label2" Text="" Font-Size="12px" ForeColor="Green" Font-Bold="true"
                                                                        Font-Names="Arial" runat="server"></asp:Label>
                                                                </div>
                                                                <div class="f_row sr_button">
                                                                    <asp:Button ID="imgbtnEmail" runat="server" onmousedown="this.className = 'button_proceed_mousedown';"
                                                                        onmouseup="this.className = 'button_proceed';" onmouseout="this.className = 'button_proceed';"
                                                                        CssClass="button_proceed" OnClientClick="LoadValidationErrorCss();HideOnSubmit();if (Page_ClientValidate('useremail')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                                                        ValidationGroup="useremail" ToolTip="Send email" OnClick="imgbtnEmail_Click" /><div
                                                                            style="display: none;">
                                                                            <input id="inputHideSignal" runat="server" value="0" /></div>
                                                                </div>
                                                                <div class="f_row">
                                                                    <asp:Label ID="lblEmailMessage" runat="server" CssClass="assumption"></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div style="text-align: left; width: 100%;">
                                                            <asp:Button ID="btnEmailClose" runat="server" Text="" Width="87px"
                                                                OnClientClick="HideEmailPopup();ShowHideEmailPanel(true);" CssClass="button_close" />
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                    <!-- Column Content | End   -->
                </div>
            </div>
            <div class="bottom">
            </div>
        </div>
    </div>
    <script type="text/javascript">
        /* <![CDATA[ */

        function ShowHideEmailPanel(OnOff) {
            if (OnOff == true) {
                document.getElementById('<%=pnlEmail.ClientID%>').style.display = 'none';
            }
            else {
                document.getElementById('<%=pnlEmail.ClientID%>').style.display = '';
            }
        }

        function HideOnSubmit() {

            isHide = document.getElementById('<%=inputHideSignal.ClientID%>').value;

            //alert(isHide);
            if (isHide == "1") {
                HideEmailPopup();
                ShowHideEmailPanel(true);
            }
        }

        function ShowEmailPopup() {
            var modpop = $find("mdlPopupEmail");
            if (!modpop) { return; }
            modpop.show()
        }

        function HideEmailPopup() {
            var modpop = $find("mdlPopupEmail");
            if (!modpop) { return; }
            modpop.hide()
        }

        /* ]]> */

    </script>
    
</asp:Content>
